package com.jxgyl.gateway.config;

import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Configuration;

/**
 * @program: middleplatform
 * @description:
 * @author: Wanglipeng
 * @create: 2022-01-21 14:28
 **/
@ConfigurationProperties(value = "gateway.url")
@Configuration
public class UrlConfig {

    /**
     * 是否开启请求路径校验
     */
    private boolean openCheck = false;

    /**
     * 需要过滤的路径
     */
    private String[] interceptUrls;

    public boolean isOpenCheck() {
        return openCheck;
    }

    public void setOpenCheck(boolean openCheck) {
        this.openCheck = openCheck;
    }

    public String[] getInterceptUrls() {
        return interceptUrls;
    }

    public void setInterceptUrls(String[] interceptUrls) {
        this.interceptUrls = interceptUrls;
    }
}
